
import request from "@/service/axios/index";

/**@description 用户API */
const userApi = {
    /**@description 查询列表 */
    getUserList: (data) => {
        return request.post({ url: '/user/list', data })
    },
    updateUser: (data) => {
        return request.post({ url: "/role/addUserForRole", data })
    },
    /**@description 添加用户 */
    createUser: (data) => {
        return request.post({ url: "/user/register", data })
    }
}
export default userApi;